package com.huangzhao.gulimall.product.feign;

import com.huangzhao.gulimall.common.to.SkuHasStockVo;
import com.huangzhao.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "gulimall-ware", path = "/ware")
public interface WareFeignService {
    @RequestMapping("/waresku/hasStock")
    R<List<SkuHasStockVo>> getSkusHasStock(@RequestBody List<Long> skuIds);

}
